package com.ruoyi.buss.report.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.buss.report.mapper.ReportKhqsfxNlfbLsbMapper;
import com.ruoyi.buss.report.domain.ReportKhqsfxNlfbLsb;
import com.ruoyi.buss.report.service.IReportKhqsfxNlfbLsbService;

/**
 * 客户年龄分布趋势分析Service业务层处理
 * 
 * @author sxy
 * @date 2021-07-16
 */
@Service
public class ReportKhqsfxNlfbLsbServiceImpl implements IReportKhqsfxNlfbLsbService 
{
    @Autowired
    private ReportKhqsfxNlfbLsbMapper reportKhqsfxNlfbLsbMapper;

    /**
     * 查询客户年龄分布趋势分析
     * 
     * @param sjrq 客户年龄分布趋势分析ID
     * @return 客户年龄分布趋势分析
     */
    @Override
    public ReportKhqsfxNlfbLsb selectReportKhqsfxNlfbLsbById(String sjrq)
    {
        return reportKhqsfxNlfbLsbMapper.selectReportKhqsfxNlfbLsbById(sjrq);
    }

    /**
     * 查询客户年龄分布趋势分析列表
     * 
     * @param reportKhqsfxNlfbLsb 客户年龄分布趋势分析
     * @return 客户年龄分布趋势分析
     */
    @Override
    public List<ReportKhqsfxNlfbLsb> selectReportKhqsfxNlfbLsbList(ReportKhqsfxNlfbLsb reportKhqsfxNlfbLsb)
    {
        return reportKhqsfxNlfbLsbMapper.selectReportKhqsfxNlfbLsbList(reportKhqsfxNlfbLsb);
    }

    /**
     * 新增客户年龄分布趋势分析
     * 
     * @param reportKhqsfxNlfbLsb 客户年龄分布趋势分析
     * @return 结果
     */
    @Override
    public int insertReportKhqsfxNlfbLsb(ReportKhqsfxNlfbLsb reportKhqsfxNlfbLsb)
    {
        return reportKhqsfxNlfbLsbMapper.insertReportKhqsfxNlfbLsb(reportKhqsfxNlfbLsb);
    }

    /**
     * 修改客户年龄分布趋势分析
     * 
     * @param reportKhqsfxNlfbLsb 客户年龄分布趋势分析
     * @return 结果
     */
    @Override
    public int updateReportKhqsfxNlfbLsb(ReportKhqsfxNlfbLsb reportKhqsfxNlfbLsb)
    {
        return reportKhqsfxNlfbLsbMapper.updateReportKhqsfxNlfbLsb(reportKhqsfxNlfbLsb);
    }

    /**
     * 批量删除客户年龄分布趋势分析
     * 
     * @param sjrqs 需要删除的客户年龄分布趋势分析ID
     * @return 结果
     */
    @Override
    public int deleteReportKhqsfxNlfbLsbByIds(String[] sjrqs)
    {
        return reportKhqsfxNlfbLsbMapper.deleteReportKhqsfxNlfbLsbByIds(sjrqs);
    }

    /**
     * 删除客户年龄分布趋势分析信息
     * 
     * @param sjrq 客户年龄分布趋势分析ID
     * @return 结果
     */
    @Override
    public int deleteReportKhqsfxNlfbLsbById(String sjrq)
    {
        return reportKhqsfxNlfbLsbMapper.deleteReportKhqsfxNlfbLsbById(sjrq);
    }
}
